package com.fph.design;

/**
 * 饿汉模式(线程安全)在程序启动的时候直接运⾏加载，后续有外
 * 部需要使⽤的时候获取即可
 * @ClassName Singleton_03
 * @Description TODO
 * @Author fph
 * @Date 2024-08-06 11:32
 **/
public class Singleton_03 {

    private static Singleton_03 instance = new Singleton_03();

    private Singleton_03()
    {
    }

    public static Singleton_03 getInstance() {
        return instance;
    }
}

